<div style="display: none;" id="divCategory"></div>
<div class="qsBox">
          <table cellspacing="0" cellpadding="0" border="0">
            <tbody>
              <tr>
                <td width="370" valign="top">
                  <div style="width: 370px; height: 268px;" id="divBannerMenu2" name="divBannerMenu">
                    <a href=""><?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'idx_dd_pre_xmas_01.jpg');?></a>
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu2" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu44" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu46" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu16" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu6" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu22" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px;display: none; " id="divBannerMenu48" name="divBannerMenu">
                  </div>
                  <div style="width: 370px; height: 268px; display: none;" id="divBannerMenu99" name="divBannerMenu">
                  </div>
                </td>
                <td width="217" valign="top" bgcolor="#ffffff">
                  <div class="quickSearch">

                      <img width="0" height="0" style="display: none;" src="<?php echo DIR_WS_TEMPLATE_IMAGES . 'spacer.gif'; ?>">
                      <table width="217" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                          <tr>
                            <td width="16" valign="top">
                              <div>
                              <?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'QS_dottedline_besidetxt.gif');?>
                              </div>
                              <div>
                                <?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'QS_dottedline_V.gif','','','195');?>
                              </div>
                            </td>
                            <td width="201" valign="top">
                             <?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'txt_QuickSearch.gif');?>
                              <div class="qsTitle">
                                Please use the following drop down menus to find your favorite types of
                                products.
                              </div>
                              <div class="qsSpace">
                           <?php 
$categories_query = "select c.categories_id, cd.categories_name
	 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd 
	 where c.parent_id = 0
	 and c.categories_id = cd.categories_id
	 and cd.language_id='" . (int)$_SESSION['languages_id'] . "'
	 and c.categories_status= 1
	 order by sort_order, cd.categories_name";
      
// echo  $categories_query ;
$categories = $db->Execute($categories_query);

$top_categories_array=array();
$top_categories_array[]=array('id'=>0,'text'=>'Select a category');

while (!$categories->EOF)  {
	$top_categories_array[]=array('id'=>$categories->fields['categories_id'],
	                              'text'=>$categories->fields['categories_name']
	                             );
	 $categories->MoveNext();
}

echo zen_draw_pull_down_menu("cni",$top_categories_array,'0','class="qsDropDown" onchange="ChangeCategoryMenu(this.value);"  id="CategoryMenuSel" ')
                           ?>
                              </div>
                              <div id="CategoryDiv">
                                <div class="qsSpace">
<select onchange="ChangeLevel1(this.value);" disabled="" class="qsDropDown" name="Level1" id="Level1Sel">
<option value="0"> Select a brand </option>
</select>
                                </div>
                                <div class="qsSpace">
<select onchange="ChangeLevel2(this.value);" disabled="" class="qsDropDown" name="Level2" id="Level2Sel">
<option value="0">Select a series</option>
</select>
                                </div>
                                <div class="qsSpace">
<select onchange="ChangeLevel3(this.value);" disabled="" class="qsDropDown" name="Level3" id="Level3Sel">
<option value="0">Select a model</option></select>
                                </div>
                              </div>
                              <div class="qsSpace">
<select onchange="ChangeLevel4(this.value);" disabled="" class="qsDropDown" id="Level4Sel"  name="Level4">
<option value="0"> Select a product type</option>
                                </select>
                              </div>
                            </td>
                          </tr>
                          <tr>
                            <td valign="top"><?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'QS_dottedline_besidebtnsear.gif');?></td>
                            <td valign="top"><input type="image" src="<?php echo DIR_WS_TEMPLATE_IMAGES . 'btn_search.gif'; ?>" onclick="quick_search_submit();"></td>
                          </tr>
                        </tbody>
                      </table>
               
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>